home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Games 1996 July
/
Amiga Games 1996 #7.iso
/
userbox
/
publicdomain
/
amigabase
/
arexx
/
rx·dos
< prev
next >
Wrap
Text File
|
1995-02-03
|
2KB
|
82 lines
/*==============================================================*/
/* rx·DOS */
/* $VER: V 02.03 (17.12.94) AUTHOR: Falk Hildner */
/*==============================================================*/
/* DOS-Operationen ausführen */
/*--------------------------------------------------------------*/
/* Aufruf: */
/* */
/* RX [Pfad/]rx·DOS */
/*==============================================================*/
OPTIONS RESULTS
CALL ADDLIB("rexxreqtools.library", 0, -30, 0)
wahl = RTEZREQUEST("A m i g a - D O S", " _Abbruch |_1 MakeDir|_2 ReName Dir|_3 Delete Dir|_4 Rename File|_5 Delete File", "Wähle ...",,)
IF wahl == 2 THEN
DO
UNTIL dirname1 > "" & dirname ~= dirname1
DO
dirname = RTFILEREQUEST(,,"Wähle Directory ...", "MakeDir", "rtfi_flags = freqf_nofiles",)
IF dirname > "" THEN dirname1 = RTGETSTRING(dirname,, "MakeDir " || dirname || "...", "Ok|_Abbruch",,)
END
IF dirname1 > "" & dirname ~= dirname1 THEN
DO
cmd = "MakeDir " || dirname1
ADDRESS COMMAND cmd
END
END
IF wahl == 3 THEN
DO
dirname1 = RTFILEREQUEST(,,"ReName Dir ...", "Rename", "rtfi_flags = freqf_nofiles",)
IF dirname1 > "" THEN
DO
dirname1 = LEFT(dirname1,LENGTH(dirname1)-1)
dirname2 = RTGETSTRING(dirname1,, "ReName " || dirname1 || " To ...", "Ok|_Abbruch",,)
IF dirname2 > "" THEN
DO
cmd = "ReName " || dirname1 || " To " || dirname2
ADDRESS COMMAND cmd
END
END
END
IF wahl == 4 THEN
DO
dirname = RTFILEREQUEST(,,"Delete Dir ...", "Delete", "rtfi_flags = freqf_nofiles",)
IF dirname > "" THEN
DO
dirname = LEFT(dirname,LENGTH(dirname)-1)
IF dirname > "" THEN
DO
cmd = "Delete " || dirname
ADDRESS COMMAND cmd
END
END
END
IF wahl == 5 THEN
DO
filename1 = RTFILEREQUEST(,,"ReName File ...", "Rename","",)
IF filename1 > "" THEN
DO
filename2 = RTGETSTRING(filename1,, "ReName " || filename1 || " To ...", "Ok|_Abbruch",,)
IF filename2 > "" THEN
DO
cmd = "ReName " || filename1 || " To " || filename2
ADDRESS COMMAND cmd
END
END
END
IF wahl == 0 THEN
DO
filename = RTFILEREQUEST(,,"Delete File ...", "Delete","",)
IF filename > "" THEN
DO
cmd = "Delete " || filename
ADDRESS COMMAND cmd
END
END